$(document).on("click",".divOpen_class" ,function(){
    debugger
    var valHtml = "";
    var tagNameType = $(this).prop("tagName");
    var ImgOrVideoVal=$(this).attr("src");
    if("IMG"==tagNameType){
        valHtml='<img   src="'+ImgOrVideoVal+'"/>';
    }else{
        valHtml='<video  width="450"  height="450" src="'+ImgOrVideoVal+'"  controls="controls"  ></video>';
    }
    layer.open({
        zIndex: 1,
        type: 1,    //弹出类型
        title: '',   //标题
        closeBtn: 1,    //显示关闭按钮
        shade: [0.3],   //遮罩透明度
        area: ['450px', '350px'],  //打开窗口的宽高
        time: 0,    //几秒后自动关闭，默认0时不关闭
        anim: 1,    //动画效果
        resize: false,  //设置成不允许拉伸
        content: '<div>'+valHtml+'</div>',
        cancel: function(index, layero){
            layer.closeAll(index);
        }
    });
})